package com.jxs.android.ges.db;

import android.database.sqlite.SQLiteOpenHelper;
import android.net.Uri;

public class CustomerProvider extends AuthorityProvider implements CustomerHolder.Table {

	public static final Uri CONTENT_URI = Uri.parse("content://" + AUTHORITY + ".customerProvider/" + TABLE_NAME);

	@Override
	protected String getProvider() {
		return "customerProvider";
	}

	@Override
	public SQLiteOpenHelper getSQLiteOpenHelper() {
		return new CustomerDBHolder(getContext());
	}

	@Override
	protected String getTableName() {
		return CustomerHolder.Table.TABLE_NAME;
	}

	@Override
	protected String getNullColumnHack() {
		return CustomerHolder.Table.NICK_NAME;
	}

	@Override
	protected String getItemId() {
		return CustomerHolder.Table.ID;
	}

}
